package com.wzutils;

import android.content.Context;
import android.content.pm.ApplicationInfo;

/**
 * Created by Hu on 2017/3/14.
 */

public class LogUtils {
    private static Boolean isDebug = null;

    public static boolean isDebug() {
        return isDebug == null ? false : isDebug.booleanValue();
    }
    public static void syncIsDebug(Context context){
        if (isDebug==null){
            isDebug=context.getApplicationContext()!=null&&(context.getApplicationInfo().flags& ApplicationInfo.FLAG_DEBUGGABLE)!=0;
        }
    }
}
